﻿using ExpressesClass.BestApi.Utils;
using ExpressesClass.StoApi.Base;
using ExpressesClass.StoApi.billTrace.response;
using ExpressesClass.StoApi.Util;
using System.Collections.Generic;

namespace ExpressesClass.StoApi.billTrace.request
{
    public class BillTraceReq : StoRequest
    {
        public BillTraceReq()
        {
            this.order = "";
            this.waybillNoList = new List<string>();
        }
        public string order { get; set; }
        public List<string> waybillNoList { get; set; }
        public override string GetApiName()
        {
            return ConfigUrl.GetApiName("TRACE");
        }

        public override string GetKeyName()
        {
            return ConfigUrl.GetKeyName("TRACE");
        }

        public override string GetUrl()
        {
            return ConfigUrl.GetUrl("TRACE");
        }

        public override StoResponse makeResponse(string rsp)
        {
            return JsonParser.jsonToObj<BillTraceRsp>(rsp);
        }
    }
}
